<script>
export default {
    name: "My",
    mounted() {
        console.log("My->mounted");
    },
    destroyed() {
        console.log("My->destroyed");
    }
}
</script>

<template>
    <div>
        <nav>
            <router-link exact to="/my">我的购物车</router-link>|
            <router-link to="/my/info">我的信息</router-link>
        </nav>
        <keep-alive>
            <router-view></router-view>
        </keep-alive>

    </div>
</template>

<style scoped>

</style>